<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <jsp:include page="WEB-INF/head.jsp"></jsp:include>
    <title>添加联系人</title>
</head>
<body>
<div class="jumbotron">
    <div class="page-header success">
        <h3>联系人管理系统<small></small></h3>
    </div>
</div>
<!--布局方式-->
<div class="container-fluid" style="width: 60%">
    <!--行-->
    <div class="row">
        <div class="panel panel-primary">
            <div class="panel-heading">添加contact</div>
            <div class="panel-body">
                <form method="get" action="./contactServlet">
                    <input type="hidden" name="action" value="add">
                    <div class="form-group has-success">
                        <label class="control-label" for="name">姓名</label>
                        <input type="text" class="form-control" id="name" name="name">
                    </div>
                    <div class="form-group has-warning">
                        <label class="control-label" for="sex">性别</label>
                        <div class="form-control" id="sex">
                            <input type="radio" name="sex" value="男" checked="checked"/>男
                            <input type="radio" name="sex" value="女"/>女
                        </div>
                    </div>

                    <div class="form-group has-error">
                        <label class="control-label" for="age">年龄</label>
                        <input type="text" class="form-control" id="age" name="age">
                    </div>

                    <div class="form-group has-success">
                        <label for="address">籍贯：</label>
                        <select name="address" class="form-control" id="address">
                            <option value="浙江">浙江</option>
                            <option value="广西">广西</option>
                            <option value="湖南">湖南</option>
                        </select>
                    </div>

                    <div class="form-group has-warning">
                        <label class="control-label" for="qq">qq</label>
                        <input type="text" class="form-control" id="qq" name="qq">
                    </div>
                    <div class="form-group has-error">
                        <label class="control-label" for="email">email</label>
                        <input type="email" class="form-control" id="email" name="email">
                    </div>
                    <div class="form-group has-success">
                        <label class="control-label" for="createDate">生日</label>
                        <input type="date" class="form-control" id="createDate" name="createDate">
                    </div>
                    <div class="row">
                        <div class="col-sm-6">
                            <button type="reset" class="btn btn-default btn-group-justified">重置</button>
                        </div>
                        <div class="col-sm-6">
                            <button type="submit" class="btn btn-primary btn-group-justified">提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
<jsp:include page="WEB-INF/footer.jsp"></jsp:include>
</html>